package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询以及根据姓名分页查询
    Page<Dish> findByPageAndName(Integer pageNum, Integer pageSize, String name);

    void add(Dish dish);

    Dish findById(Long id);

    void update(Dish dish);

    void statusConvert(Integer status, List<Long> ids);

    Boolean delete(List<Long> ids);

    List<Dish> findByDish(Long categoryId);

    List<Dish> findWithType(Long categoryId, Integer status);

    List<Dish> findByName(String name);
}
